﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _007_继承与多态
{
    public class Client
    {
        public string name;

        public Client(string name)
        {
            this.name = name;
        }
        public void CheckIn()
        {
            Console.WriteLine(name + "值机");
        }

        public void SecruityCheck()
        {
            Console.WriteLine(name + "排队安检");
        }

        public void Wait()
        {
            Console.WriteLine(name + "候机室候机");
        }

        public void Borad()
        {
            Console.WriteLine(name + "登机");
        }
    }

    public class Economy : Client
    {
        public Economy() : base("Economy")
        {

        }
        public new void Wait()
        {
            Console.WriteLine(name + "大厅候机室候机");
        }
    }

    public class VIP : Client
    {
        public VIP() : base("VIP")
        {

        }
        public new void Wait()
        {
            Console.WriteLine(name + "VIP候机室候机");
        }
    }
}
